package com.youmans.eduservice.client;

import com.youmans.commonutils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {
    @ApiOperation("根据视频id删除阿里云视频")
    @DeleteMapping("/eduvod/video/removeAliVideo/{id}")
    R removeAliVideo(@PathVariable("id") String id);

    @ApiOperation("根据视频ids删除多个阿里云视频")
    @DeleteMapping("/eduvod/video/deleteBatch")
    R deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
